\documentclass[11pt, a4paper, twoside, openright]{report}

% Preamble

% Package import
\usepackage[utf8]{inputenc}
\usepackage[DETI,newLogo,final]{uaThesis}
\usepackage[portuguese]{babel}
\usepackage[usenames,dvipsnames]{color}
\usepackage[hyperfootnotes=false]{hyperref}
\usepackage{glossaries}
\usepackage{acronym}
\usepackage[top=3cm, bottom=3cm, left=3cm, right=2.5cm]{geometry}
\usepackage{setspace} % space between lines
\usepackage{indentfirst}  % indent first paragraph
\usepackage{listings}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{float}
\usepackage{longtable}
% /Package import

% Command for setting the font for the head row:
\newcommand{\head}[1]{\textnormal{\textbf{#1}}}

% Document's properties.
\newcommand{\DocTitle}{JDBC (Java DB Connectivity) Concorrente}
\newcommand{\DocAuthor}{Wilson Santos, 36228}
\newcommand{\DocSubject}{Dissertação de mestrado}
\newcommand{\DocKeywords}{JDBC, Native-protocol driver, Concurrency, SQL Server}
\newcommand{\ThesisYear}{2011}
\newcommand{\FullName}{Wilson Bertino \newline Lopes dos Santos}
% /Document's properties.

\hypersetup{
    bookmarks=true,         % show bookmarks bar?
    unicode=false,          % non-Latin characters in Acrobat’s bookmarks
    pdftoolbar=true,        % show Acrobat’s toolbar?
    pdfmenubar=true,        % show Acrobat’s menu?
    pdffitwindow=true,      % page fit to window when opened
    pdftitle={\DocTitle},       % title
    pdfauthor={\DocAuthor},     % author
    pdfsubject={\DocSubject},   % subject of the document
    pdfkeywords={\DocKeywords}, % list of keywords
    pdfnewwindow=true,          % links in new window
    colorlinks=true,        % false: boxed links; true: colored links
    linkcolor=black,  %MidnightBlue,          % color of internal links
    citecolor=black,  %OliveGreen,        % color of links to bibliography
    filecolor=black,  %magenta,      % color of file links
    urlcolor=black,  %Cyan           % color of external links
}
% Configure listings
\lstset{language=Java, 
        basicstyle=\footnotesize\ttfamily,
        numbers=left, 
        numberstyle=\tiny, 
        numbersep=5pt,
        commentstyle=\bf\color{black},%\color{OliveGreen},
        frame=tb,
        stepnumber=2}
\renewcommand{\lstlistingname}{Listagem}
\captionsetup{justification=centering,font=small,textfont=it}
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\onehalfspacing

\makeglossaries
\include{glossary/entries}

% /Preamble

\begin{document}

\include{frontpages}

\pagenumbering{roman}
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{5}
\tableofcontents
\addcontentsline{toc}{chapter}{Conteúdo}

\cleardoublepage
\listoftables
\addcontentsline{toc}{chapter}{Lista de tabelas}

\cleardoublepage
\listoffigures
\addcontentsline{toc}{chapter}{Lista de figuras}

\cleardoublepage
\pagenumbering{arabic}
\include{chapters/introducao}
\include{chapters/jdbc-driver-impl}
\include{chapters/cresultset}
\include{chapters/benchmark}
\include{chapters/resultados}
\include{chapters/discussao}

\include{glossary/glossary}
\include{glossary/acronyms}
\include{bibliography/bibliography}

% Appendix
\appendix
\include{appendices/msjdbc}
\include{appendices/tds}
\include{appendices/cursorsp}
\include{appendices/jdbc-funcionalidade-implementada}
% /Appendix

\end{document}
